using UnityEngine;
using UnityEngine.UI;

public class YijianfenghouUI : MonoBehaviour
{
    public Toggle yjfhNeedSanhouToggle;
    
    void Start()
    {
        yjfhNeedSanhouToggle.onValueChanged.AddListener(OnSanshouToggle);
        AppController.instance.YijianfenghouAnalysis.needSanshou = this.yjfhNeedSanhouToggle.isOn;

    }

    public void OnSanshouToggle(bool isOn)
    {
        AppController.instance.YijianfenghouAnalysis.needSanshou = isOn;
    }
}